package com.qf.service.impl;

import com.qf.entity.MdUnitMeasure;
import com.qf.mapper.MasterDataMapper;
import com.qf.service.MasterDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- Be Humble and Hungry ---
 *
 * @author McMeloxD
 * @date 2024/7/16
 * @desc
 */
@Service
public class MasterDataServiceImpl implements MasterDataService {
    @Autowired
    private MasterDataMapper masterDataMapper;

    @Override
    public List<MdUnitMeasure> getAllUnitMeasure(String measureCode, String measureName) {
        return masterDataMapper.getAllUnitMeasure(measureCode, measureName);
    }

    @Override
    public int delUnitMeasure(String measureCode) {
        return masterDataMapper.delUnitMeasure(measureCode);
    }

    @Override
    public int delBatchUM(List<String> measureCodes) {
        return masterDataMapper.delBatchUM(measureCodes);
    }

    @Override
    public int addUMBatch(MdUnitMeasure mdUnitMeasure) {
        return masterDataMapper.addUMBatch(mdUnitMeasure);
    }

    @Override
    public int editUMBatch(MdUnitMeasure mdUnitMeasure) {
        return masterDataMapper.editUMBatch(mdUnitMeasure);
    }
}
